<?=use_lightbox()?>
<script language='javascript' type='text/javascript' src="<?=base_url('product_groups')?>scripts/product_groups.js"></script>
<?php echo form_open($this->product_groups_detail_model->url_prefix); ?>
<?if($msg){?><center><div class="messageBox"><?=$msg?></div></center><?}?>
<table border="0" cellspacing="0" cellpadding="0" class="infoTable">
  <tr>
    <td id='infoStr'>Tên nhóm *:</td>
    <td id='infoInput' align='left'><input name="name" id="name" type="text" value="{name}" size="30" /></td>
  </tr>
  <tr>
    <td id='infoStr'>Phân loại *:</td>
    <td id='infoInput' align='left'>
	<select name="cate" id="cate">
	<?$i=1;foreach($product_categories as $o_cate){?>
	 <option value="<?=$o_cate->{PRODUCT_CATEGORIES_ID}?>" <? if($o_cate->{PRODUCT_CATEGORIES_ID}==$cate) echo 'selected'; ?>><?=$o_cate->{PRODUCT_CATEGORIES_NAME}?></option>
	<?}?>
	</select>
  </tr>
  <tr>
    <td id='infoStr'>Chú thích:</td>
    <td id='infoInput' align='left'>{description}</td>
  </tr>
  <tr>
    <td id='infoStr'>&nbsp;</td>
    <td id='infoInput' align='left'>
        <input type="button" value="Lưu" class="save_button" style="cursor:pointer" onclick="return product_groups.saveItem({start}, {item},'{language}')" />&nbsp;
        <input type="button" value="Quay về" class="cancel_button" style="cursor:pointer" onclick="product_groups.cancel({start},'{language}')" />
    </td>
  </tr>
</table>
</form>